package com.qf.dao;

import com.qf.domain.OrderDetail;
import com.qf.domain.User;

import java.util.List;

public interface UserDao {
    User selectByUsername(String username);

    void insert(User user);

    User login(String username, String password);

    List<User> findByRole();

    List<User> findByNameAndGender(String where, List<Object> params);

    //void removeByUId(int uid,);

    User findByUId(Integer uid);

    void removeByUId(int uid);

    List<User> findNoByNameAndGender(String where, List<Object> params);

    void modifyFlag1ById(int uid);

    void modifyFlag0ById(int uid);

    void deleteBydetail(String id);

    void modifyUserById(String id, String username, String email, String gender);

}
